//
// Created by lymk on 2022/3/21.
//

#include "test.h"
#include "Model/SphereMesh.h"
using namespace std;
void testInsideTriangle() {
    auto* renderPipeline = new RenderPipeline();
    int top = 15;
    int bottom = 30;
    int left = 20;
    int right = 40;
    vector<glm::vec2> tri;
    tri.emplace_back(40,15);
    tri.emplace_back(40,30);
    tri.emplace_back(20,30);
    for(int i=top;i<=bottom;i++){
        for(int j=left;j<=right;j++){
            if(renderPipeline->InsideTriangle({j,i},tri)){
                cout<<"1";
            }else
                cout<<"0";
        }
        cout<<endl;
    }
}

void testSphereMesh() {
    SphereMesh* mesh = new SphereMesh({0.f,0.f,-5.f},5.f);
    cout<<"AAA"<<endl;
}
